#
# Copyright (c) 2020 INRIA
#

IF(CPPADCG_FOUND AND BUILD_WITH_CODEGEN_SUPPORT AND BUILD_WITH_URDF_SUPPORT)
  INCLUDE_DIRECTORIES(SYSTEM ${cppadcg_INCLUDE_DIR})
  ADD_PINOCCHIO_CPP_EXAMPLE(codegen-crba)
  SET_PROPERTY(TARGET example-cpp-codegen-crba PROPERTY CXX_STANDARD 11) 
  TARGET_LINK_LIBRARIES(example-cpp-codegen-crba PUBLIC ${CMAKE_DL_LIBS})
ENDIF(CPPADCG_FOUND AND BUILD_WITH_CODEGEN_SUPPORT AND BUILD_WITH_URDF_SUPPORT)

